home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.sys.amiga.programmer
- Path: Utrecht.NL.net!news
- From: avdelst@box.nl (Andre van der Elst)
- Subject: Re: A4000
- X-Nntp-Posting-Host: box.nl
- Message-ID: <809.6600T1263T1010@box.nl>
- Sender: news@inter.NL.net (News at newsutr)
- Organization: NLnet
- X-Newsreader: THOR 2.2 (Amiga;TCP/IP)
- References: <9601271304.AA0007w@cliffe.demon.co.uk>
- Date: Sat, 27 Jan 1996 20:11:41 GMT
-
-
- Steven Chapman wrote:
- >Sorry about the file News item.
-
- >
- >This has been copied out of the Complete Amiga C book from
- >Amiga Shopper and cashes A4000/30 and A4000/40 when run.
- >But if fastmem is turned off runs as it should.
- >Any idea's or could this be a mother board fault with A4000's.
- >Have suppied Executable and source (Complie via SAS).
-
- >Steve C.
-
- Crashes here too. I think it's the scanf() call in function selection.
-
- ---
- char input;
- scanf("%1s",&input);
- ---
-
- I personally don't like this kind of coding.
- MAYBE scanf wants to add a '\0' add the end of the string. This might result
- in trashing the stack of your application.
-
- Try declaring input as :
- char input[2]
-
- And use input[1] where input is used now.
-
- Let me know it this works, I can't try it out myself right now.
-
- Edwin van der Elst.
-
-